import { defineStore } from 'pinia';

export const useCampStore = defineStore('camp', {
  state: () => ({
    campId: '',
    campName: '',
    organizerInfo: '',
    coverImage: '',
    tags: '',
    startTime: '',
    endTime: '',
  }),
  actions: {
    setTrainingInfo(payload: {
      campId: string,
      campName: string,
      organizerInfo: string,
      coverImage: string,
      tags: string,
      startTime: string,
      endTime: string,
    }) {
      this.campId = payload.campId;
      this.campName = payload.campName;
      this.organizerInfo = payload.organizerInfo;
      this.coverImage = payload.coverImage;
      this.tags = payload.tags;
      this.startTime = payload.startTime;
      this.endTime = payload.endTime;
    },
  },
});
